package se.kth.fericss.menu;

import java.awt.event.*;
import java.awt.geom.Point2D;
import java.awt.*;
import javax.swing.*;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;

import se.kth.fericss.rts.Game;
import se.kth.fericss.rts.Tile;
import se.kth.fericss.rts.View;
import se.kth.fericss.rts.World;

public class MainMenu{
	@SuppressWarnings("unused")
	private Game 	game;
	@SuppressWarnings("unused")
	private World 	world;
	private View 	worldView;
	private boolean visible;
	
	private MenuButton newGame;
	
	private int width, height;
	public MainMenu(Game game, World world, View view){
		this.game = game;
		this.world = world;
		this.worldView=view;
		visible=false;
		width=300;
		height=500;
		newGame = new MenuButton("New Game");
		
	}
	public void setVisible(boolean b){
		visible=b;
		newGame.setVisible(b);
	}
	public boolean isVisible(){
		return visible;
	}
	public void draw(Graphics g) {
		g.setColor(new Color(200,0,50));
		g.fillRect(	worldView.getScreenSize().width/2-width/2, 
					worldView.getScreenSize().height/2-height/2, 
					width, height);
		newGame.setLocation(400,400);
	}
}
